package com.cango.student.Decorator;

public class Test {
    public static void main(String[] args) {
        Coffee america = new America();

        Coffee coffee = new Milk(new Moka(america));

        System.out.println(coffee.cost());

        Coffee coffee2 = new Milk(america);

        System.out.println(coffee2.cost());
    }
}
